<?php

/**
 * sfGuardUserAdminForm for admin generators
 *
 * @package    sfDoctrineGuardPlugin
 * @subpackage form
 * @author     Fabien Potencier <fabien.potencier@symfony-project.com>
 * @version    SVN: $Id: sfGuardUserAdminForm.class.php 23536 2009-11-02 21:41:21Z Kris.Wallsmith $
 */
class sfGuardUserAdminForm extends BasesfGuardUserAdminForm
{
  /**
   * @see sfForm
   */
  public function configure()
  {
   parent::configure();
   
//   $profile = new MobilyrentProfile();
//   $profile->setSfGuardUserId($this->getObject()->id);
//   $profileForm = new MobilyrentProfileForm($profile);
//   unset($profileForm['sf_guard_user_id'], $profileForm['sf_guard_user_id']);
//   unset($profileForm['created_at'], $profileForm['created_at']);
//   unset($profileForm['updated_at'], $profileForm['updated_at']);
//   unset($profileForm['is_activated'],$profileForm['is_activated']);
//   $this->embedForm('Profile', $profileForm);
   
   
  $profileForm = new HalalmenuProfileForm($this->object->Profile);
  unset($profileForm['id'], $profileForm['sf_guard_user_id']);
  unset($profileForm['created_at'], $profileForm['created_at']);
  unset($profileForm['updated_at'], $profileForm['updated_at']);
  unset($profileForm['is_activated'],$profileForm['is_activated']);
  $this->embedForm('Profile', $profileForm);
  
  }
}
